<template>
	<div class="header">
		<div class="header-left" @click="toHome()">
			<span class="iconfont">&#xe605;</span>
		</div>
		<div class="header-title">
			自由行
		</div>
		<div class="header-right">
			全部商品
		</div>
	</div>
	<div class="header-two">
		<div class="header-search">
			<span class="iconfont">&#xe632;</span>
			<span>搜索目的地、折扣、关键词</span>
		</div>
	</div>
</template>

<script>
	export default{
		methods:{
			toHome(){
				this.$router.push('/')
			}
		}
	}
</script>

<style scoped>
	.header{
		width: 100%;
		height: 0.88rem;/*44像素=0.88rem*/
		background-color: limegreen;
		color: white;
		font-size: 0.36rem;/*0.36rem */
		line-height: 0.88rem;
		position: relative;
	}
	.header-two{
		background-color: limegreen;
		height: 1rem;
		padding-top: 0.3rem;
		padding-left: 0.2rem;
		padding-right: 0.2rem;
	}
	.header-left {
		width: 0.4rem;
		padding: 0px 0.2rem;
		font-weight: bold;
		text-align: center;
		position: absolute;
	}
	.header-title{
		position: absolute;
		left: 45px;
	}
	.header-right{
		position: absolute;
		left: 280px;
		font-size: 0.3rem;
	}
	.header-search {
		background-color: white;
		height: 0.6rem;
		color: lightgray;
		line-height: 0.6rem;
		font-size: 0.28rem;
	}
</style>
